// 模拟数据配置
export const mockConfig = {
  enabled: true, // 是否启用模拟数据
  delay: 300 // 模拟请求延迟（毫秒）
}

// 用户模拟数据
export const mockUsers = [
  {
    id: 1,
    username: 'admin',
    name: '管理员',
    email: 'admin@example.com',
    phone: '13800138000',
    gender: 'male',
    age: 30,
    status: 'active',
    role: 'admin',
    avatar: 'https://tdesign.gtimg.com/starter/avatar.jpg',
    createTime: '2024-01-01 10:00:00',
    lastLoginTime: '2025-06-29 09:30:00'
  },
  {
    id: 2,
    username: 'user001',
    name: '张三',
    email: 'zhangsan@example.com',
    phone: '13800138001',
    gender: 'male',
    age: 25,
    status: 'active',
    role: 'user',
    avatar: 'https://tdesign.gtimg.com/starter/avatar.jpg',
    createTime: '2024-02-15 14:30:00',
    lastLoginTime: '2025-06-28 16:45:00'
  },
  {
    id: 3,
    username: 'user002',
    name: '李四',
    email: 'lisi@example.com',
    phone: '13800138002',
    gender: 'female',
    age: 28,
    status: 'active',
    role: 'user',
    avatar: 'https://tdesign.gtimg.com/starter/avatar.jpg',
    createTime: '2024-03-20 11:15:00',
    lastLoginTime: '2025-06-27 20:30:00'
  }
]

// 景点模拟数据
export const mockAttractions = [
  {
    id: 1,
    name: '黄果树瀑布',
    location: '贵州省安顺市',
    price: 180,
    description: '中国最大的瀑布群，被誉为"中华第一瀑"',
    images: ['https://example.com/image1.jpg'],
    status: 'online',
    category: '自然景观',
    rating: 4.8,
    visitCount: 15420,
    createTime: '2024-01-10 09:00:00'
  },
  {
    id: 2,
    name: '荔波小七孔',
    location: '贵州省黔南州荔波县',
    price: 130,
    description: '世界自然遗产，被称为"地球腰带上的绿宝石"',
    images: ['https://example.com/image2.jpg'],
    status: 'online',
    category: '自然景观',
    rating: 4.7,
    visitCount: 12350,
    createTime: '2024-01-15 10:30:00'
  }
]

// 活动模拟数据
export const mockActivities = [
  {
    id: 1,
    title: '贵州民族文化节',
    startTime: '2025-07-01 09:00:00',
    endTime: '2025-07-07 18:00:00',
    location: '贵阳市',
    price: 0,
    description: '体验贵州多彩的民族文化',
    status: 'upcoming',
    category: '文化活动',
    maxParticipants: 500,
    currentParticipants: 128,
    createTime: '2025-05-15 14:00:00'
  },
  {
    id: 2,
    title: '茅台酒文化体验之旅',
    startTime: '2025-07-15 08:00:00',
    endTime: '2025-07-15 17:00:00',
    location: '遵义市仁怀市',
    price: 299,
    description: '探索茅台酒的制作工艺和文化历史',
    status: 'ongoing',
    category: '文化体验',
    maxParticipants: 50,
    currentParticipants: 35,
    createTime: '2025-06-01 16:30:00'
  }
]

// 订单模拟数据
export const mockOrders = [
  {
    id: 'ORD20250629001',
    userId: 2,
    userName: '张三',
    userPhone: '13800138001',
    type: 'attraction',
    itemId: 1,
    itemName: '黄果树瀑布',
    quantity: 2,
    unitPrice: 180,
    totalAmount: 360,
    status: 'paid',
    paymentMethod: 'wechat',
    paymentTime: '2025-06-29 10:15:00',
    createTime: '2025-06-29 10:00:00',
    remark: ''
  },
  {
    id: 'ORD20250628002',
    userId: 3,
    userName: '李四',
    userPhone: '13800138002',
    type: 'activity',
    itemId: 2,
    itemName: '茅台酒文化体验之旅',
    quantity: 1,
    unitPrice: 299,
    totalAmount: 299,
    status: 'completed',
    paymentMethod: 'alipay',
    paymentTime: '2025-06-28 14:20:00',
    createTime: '2025-06-28 14:00:00',
    remark: '用户要求上午参加'
  }
]

// 统计数据模拟
export const mockStatistics = {
  dashboard: {
    userCount: 2458,
    orderCount: 1256,
    attractionCount: 86,
    activityCount: 42,
    totalRevenue: 1256800,
    todayRevenue: 25680,
    todayOrders: 18,
    monthlyGrowth: 8.5
  },
  userGrowth: [
    { date: '2025-06-01', count: 2200 },
    { date: '2025-06-08', count: 2280 },
    { date: '2025-06-15', count: 2350 },
    { date: '2025-06-22', count: 2420 },
    { date: '2025-06-29', count: 2458 }
  ],
  genderDistribution: [
    { name: '男性', value: 1380 },
    { name: '女性', value: 1078 }
  ],
  ageDistribution: [
    { name: '18-25岁', value: 520 },
    { name: '26-35岁', value: 890 },
    { name: '36-45岁', value: 680 },
    { name: '46-55岁', value: 268 },
    { name: '55岁以上', value: 100 }
  ]
}

// 系统设置模拟数据
export const mockSettings = {
  website: {
    siteName: '贵州四季康养管理系统',
    siteDescription: '专业的康养旅游管理平台',
    keywords: '康养,旅游,贵州,管理系统',
    logo: '/logo.png',
    favicon: '/favicon.ico',
    icp: '黔ICP备12345678号',
    contactPhone: '400-123-4567',
    contactEmail: 'contact@example.com'
  },
  payment: {
    wechat: {
      enabled: true,
      appId: 'wx1234567890',
      mchId: '1234567890',
      apiKey: '***'
    },
    alipay: {
      enabled: true,
      appId: '2021001234567890',
      privateKey: '***',
      publicKey: '***'
    },
    unionpay: {
      enabled: false,
      merId: '123456789012345',
      apiKey: '***'
    }
  },
  notification: {
    email: {
      enabled: true,
      smtp: 'smtp.qq.com',
      port: 587,
      username: 'admin@example.com',
      password: '***'
    },
    sms: {
      enabled: true,
      provider: 'aliyun',
      accessKey: '***',
      secretKey: '***',
      signName: '四季康养'
    }
  }
}

// 导出所有模拟数据
export default {
  mockConfig,
  mockUsers,
  mockAttractions,
  mockActivities,
  mockOrders,
  mockStatistics,
  mockSettings
} 